package com.ruoyi.report_hntjg.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.utils.BigDecimalUtil;
import lombok.Data;

import java.math.BigDecimal;


/**
 * 碳化深度试验检测记录-详情视图对象 report_hntjg_thsdjlb_ba_detail
 *
 * @author tll
 * @date 2024-08-07
 */
@Data
@ExcelIgnoreUnannotated
public class ReportHntjgThsdjlbBaDetailVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long detailId;

    /**
     * 主表id
     */
    @ExcelProperty(value = "主表id")
    private Long excelId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 测区
     */
    @ExcelProperty(value = "测区")
    private String ceq;

    /**
     * 表面状况
     */
    @ExcelProperty(value = "表面状况")
    private String biaomzk;

    /**
     * 碳化深度(mm)1
     */
    @ExcelProperty(value = "碳化深度(mm)1")
    private BigDecimal tanhsd1;

    /**
     * 碳化深度(mm)2
     */
    @ExcelProperty(value = "碳化深度(mm)2")
    private BigDecimal tanhsd2;

    /**
     * 碳化深度(mm)3
     */
    @ExcelProperty(value = "碳化深度(mm)3")
    private BigDecimal tanhsd3;

    /**
     * 碳化深度平均(mm)
     */
    @ExcelProperty(value = "碳化深度平均(mm)")
    private BigDecimal tanhsdPjz;

    /**
     * 行号默认一批行
     */
    @ExcelProperty(value = "行号默认一批行")
    private Long baRowNumber;

    private Integer sort;

    public void setTanhsd1(BigDecimal tanhsd1) {
        this.tanhsd1 = BigDecimalUtil.stpTrailZero(tanhsd1);
    }

    public void setTanhsd2(BigDecimal tanhsd2) {
        this.tanhsd2 = BigDecimalUtil.stpTrailZero(tanhsd2);
    }

    public void setTanhsd3(BigDecimal tanhsd3) {
        this.tanhsd3 = BigDecimalUtil.stpTrailZero(tanhsd3);
    }

    public void setTanhsdPjz(BigDecimal tanhsdPjz) {
        this.tanhsdPjz = BigDecimalUtil.stpTrailZero(tanhsdPjz);
    }
    public ReportHntjgThsdjlbBaDetailVo(Long excelId, Long baRowNumber) {
        this.excelId = excelId;
        this.baRowNumber = baRowNumber;
    }
}
